package com.dycn.dao;

import com.dycn.model.TasksActivities;
import com.dycn.model.TasksActivitiesVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface TasksActivitiesMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(TasksActivities record);

    int insertSelective(TasksActivities record);

    TasksActivities selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TasksActivities record);

    int updateByPrimaryKey(TasksActivities record);

    List<TasksActivitiesVo> list(@Param("openid")String openid,@Param("type")String type,@Param("activityId")Integer activityId);
    List<TasksActivitiesVo> listById(@Param("openid") String openid, @Param("taskId") String taskId);
    int updateNumById(TasksActivities tasksActivities);

     TasksActivities findById(String id);
    List<TasksActivities> lists(TasksActivities tasksActivities);

    int deleteById(String id);

    TasksActivities findByuserIdAndtype(@Param("userId")String userId,@Param("type")Integer type,@Param("activityId")Integer activityId);


}